Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure definition tree has the defined symbol #21851

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Oct 28, 2024

It turns out it could have the wrong symbol referring to a same-named definition in the superclass under some recursive definition of a self type. This caused a crash in pickler in #21755 because we now have two different definitions in two different classes that have the same symbol.

Fixes #21755

It turns out it could have the wrong symbol referring to a same-named definition
in the superclass under some recursive definition of a self type. This caused a crash
in pickler in scala#21755 because we now have two different definitions in two different classes that
have the same symbol.

Fixes scala#21755
@odersky
Copy link
Contributor Author

odersky commented Nov 4, 2024

@dwijnand Ping for review

@odersky odersky merged commit 9e266e4 into scala:main Nov 8, 2024
29 checks passed
@odersky odersky deleted the fix-21755 branch November 8, 2024 16:03
@dwijnand
Copy link
Member

Sorry Martin, I missed this.

@odersky
Copy link
Contributor Author

odersky commented Nov 12, 2024

No problem. If you still can take a look, please do!

@dwijnand
Copy link
Member

Yep, the situation looks crazy but the fix looks good 😄

@WojciechMazur WojciechMazur added this to the 3.6.3 milestone Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

unhandled exception while running pickler
3 participants